package com.zw.a.basic.a04.demo05_overload;

//演示: 方法的参数传递问题之:  形参是基本类型.
//记忆: 基本类型作为参数时, 形参的改变对实参没有任何影响.
public class MethodDemo03 {
    public static void main(String[] args) {
        int number = 100;
        System.out.println("调用change方法前：" + number);        //100
        change(number);	 //实参.
        System.out.println("调用change方法后：" + number);        //100
    }

    public static void change(int number) {	//形参.           //number = 100;
        number = 200;
    }
}
